package com.huaxin.device.mapping;

import com.huaxin.device.dto.request.ElectricalEquipmentCreateReqDTO;
import com.huaxin.device.dto.request.ElectricalEquipmentUpdateReqDTO;
import com.huaxin.device.models.ElectricalEquipment;
import org.mapstruct.Mapper;
import org.mapstruct.MappingTarget;

@Mapper(componentModel = "spring")
public interface ElectricalEquipmentMapping {

    ElectricalEquipment toEntity(ElectricalEquipmentCreateReqDTO in);

    void updateEntity(ElectricalEquipmentUpdateReqDTO in, @MappingTarget ElectricalEquipment entity);
}